﻿@model  zichan.Models.MenuModel
@{
    ViewBag.Title = "菜单添加";
}

@section Pagetitle{
    @AdminCommon.PageTitle("菜单管理", "添加")
}


@using (Html.BeginForm("Create", "Menu", FormMethod.Post, new { id = "mainForm", @class = "form-horizontal" }))
{
    <div class="form-body">
        @Html.Hidden("Pid", Model.Pid)
        @Html.AntiForgeryToken()
        @if (Model.Pid > 0)
        {
            <div class="alert alert-info">
                <button class="close" data-dismiss="alert"></button>
                父路径:@ViewBag.Ptile
            </div>
        }

        <div class="form-group">
            <label class="col-md-3 control-label">菜单名称:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Title, new { @class = "form-control input-large" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Title)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Controller:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Controller, new { @class = "form-control input-large" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Controller)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Action:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Action, new { @class = "form-control input-large" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Action)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">IconClass:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Ico, new { @class = "form-control input-small" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Ico)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">排序编号:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Sort, new { @class = "form-control input-small" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Sort)
                </span>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">备注:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Remark, new { @class = "form-control input-large" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Remark)
                </span>
            </div>
        </div>


        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">提交</button>
                    <button type="reset" class="btn default">清空</button>
                </div>
            </div>
        </div>
    </div>
}


@section footer{
    @Scripts.Render("~/bundles/jqueryval")
}

